package www.woniuxy.com.class112.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.lang.annotation.Documented;

@Data
@Document(indexName = "qus")
public class Qus {

    @Id
    private Long knowledge_id;
    @Field(type = FieldType.Text,index = true,analyzer = "ik_max_word")
    private String title;
    @Field(type = FieldType.Text,index = true,analyzer = "ik_max_word")
    private String content;
}
